<template>
  <el-row class="tac" style="height: 100%;">
    <el-col :span="24">
      <el-menu
        popper-effect="light"
        active-text-color="#1890ff"
        background-color="#ffffff"
        class="el-menu-vertical-demo"
        :default-active="route.path"
        router
      >
        <el-menu-item index="/home">
          <el-icon><icon-menu /></el-icon>
          <span>首页</span>
        </el-menu-item>
        <el-menu-item index="/about">
          <el-icon><document /></el-icon>
          <span>关于</span>
        </el-menu-item>
        <el-menu-item index="/screen">
          <el-icon><document /></el-icon>
          <span>数据大屏</span>
        </el-menu-item>
      </el-menu>
    </el-col>
  </el-row>
</template>

<script lang="ts" setup>
import {
  Document,
  Menu as IconMenu,
} from '@element-plus/icons-vue'
import {useRoute,useRouter} from 'vue-router'
const route = useRoute()
const router = useRouter()
</script>

<style scoped lang="less">
.el-menu-item:hover{
  background-color: #ecf5ff;
}

</style>
